Closed Bug 1758605 Opened 2 years ago Closed 2 years ago

MediaCapabilities fails to detect hardware support for certain H264 profiles because avcC box is encoded incorrectly.

Categories

(Core :: Audio/Video: Playback, defect, P3)

Firefox 99
defect

Tracking

()

RESOLVED FIXED
100 Branch
Tracking Status
firefox100 --- fixed

People

(Reporter: Zaggy1024, Assigned: Zaggy1024)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:99.0) Gecko/20100101 Firefox/99.0

Steps to reproduce:

Query H264 High Profile (100, 0x64) support via MediaCapabilities:

await navigator.mediaCapabilities.decodingInfo({type: 'file', video: {'contentType': 'video/mp4;codecs=avc1.64001E', width: 1280, height: 720, framerate: 30, bitrate: 1000000}});

Actual results:

The query returns powerEfficient=false when hardware decoding is supported.

Note: The result of the query will be affected by the resolution due to the way the box is decoded. 1280x720 fails, 640x360 and 1920x1080 succeed.

Expected results:

All queries for H264 High Profile hardware support should succeed.

The Bugbug bot thinks this bug should belong to the 'Core::Audio/Video: Playback' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → Audio/Video: Playback
Product: Firefox → Core
Severity: -- → S3
Priority: -- → P3
Status: UNCONFIRMED → NEW
Ever confirmed: true

Added two missing flags to H264::CreateExtraData that are required to parse the avcC box correctly.

Depends on D140148

Assignee: nobody → Zaggy1024
Status: NEW → ASSIGNED
Pushed by alwu@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/88a481adf830
Fix MediaCapabilities not detecting hardware support for certain H264 profiles. r=alwu
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 100 Branch
Regressions: 1760804
Regressions: 1763680
No longer regressions: 1760804
No longer regressions: 1762660
Regressions: 1793477
No longer regressions: 1793477
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: